package com.objetdirect.gwt.umldrawer.client;

import com.gwtext.client.data.Node;
import com.gwtext.client.widgets.tree.TreeNode;
import com.gwtext.client.widgets.tree.TreePanel;

public class OpenProjectTree extends TreePanel {

	private static TreeNode root = new TreeNode("Project Heirarchy") ;
	
	public TreeNode getOpenProjectTree() {
		
		Node [] nodes = root.getChildNodes() ;
		for (Node node : nodes) {
			node.remove() ;
		}
		
		setRootNode(root);
		return root ;
	}
}
